northPanelProto = {
    initComponent: function() {
		northPanel.superclass.initComponent.call(this);
        this.initHandlers();
	}
   , initHandlers : function()
    {
        globals.bindHandlers(this.id, {
            npUsersBtn: {fn : this.listUsers}
            ,logoutButton : {fn : sweatShop.session.logout}
            ,manageProductsButton : {fn : this.openProductManager}
            ,manageSprintsButton : {fn : this.openSprintManager}
            ,npCreateTicketBtn : {fn : sweatShop.openTicketWizard}
        });

        globals.bindListeners(this.id, {
           hourPromptButton : { event:'toggle' , fn : sweatShop.toggleAutoPromptHours }
        });
    }
    , openTicketWizard : function ()
    {
        new newTicketEditor().show();
    }
    ,alertButtonPressed : function(button, event)
    {
        alert('Clicked '+button.getText());
    }
    ,alertMenuPressed : function (item, event)
    {
        alert('Clicked '+item.text);

    }
    , openProductManager : function()
    {
        new productManagement().show();
    }
    , openSprintManager : function()
    {
        new sprintManagement().show();
    }
    , listUsers : function()
    {
        win = new userManagement();
        win.show(this.applicationButton);
    }
    , newUserWizard : function()
    {
        new newUserWizard().show();
    }
};
northPanel = Ext.extend(northPanelUi, northPanelProto);